package com.java.test.agent.module.feescale.entity;

import lombok.Data;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * 代理手续费entity
 *
 * @author lijie1
 * @date 2020/6/30 0030
 */
@Data
public class AgentFeeScaleEntity implements RowMapper<AgentFeeScaleEntity> {

    private double feeScale;//手续费比例
    private double brokerageScale;//返佣比例


    @Override
    public AgentFeeScaleEntity mapRow(ResultSet resultSet, int i) throws SQLException {
        AgentFeeScaleEntity info = new AgentFeeScaleEntity();
        info.setFeeScale(resultSet.getDouble("feescale"));
        info.setBrokerageScale(resultSet.getDouble("brokeragescale"));
        return info;
    }
}
